package com.fulihui.wgj.admin.api.wxtemplate.request;

import com.fulihui.common.request.web.CommonRequest;
import com.fulihui.weixinsdk.model.MiniProgram;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 模板消息发送个人预览请求
 *
 * @author: Levon
 * @date: 2018-07-26 14:33
 */
@Getter
@Setter
@ApiModel("微信模板消息发送到手机预览请求")
public class WeiXinSinglePreviewRequest extends CommonRequest {

    @ApiModelProperty("用户openid")
    @NotBlank(message = "用户openid不能为空")
    private String openId;

    @ApiModelProperty("模板ID")
    private String templateId;

    @ApiModelProperty("模板内容（JSON）")
    private String templateContent;

    @ApiModelProperty("模板URL")
    private String templateUrl;

    @ApiModelProperty("小程序对象")
    private MiniProgram miniprogram;

    @ApiModelProperty("是否小程序")
    private Boolean miniApp;
}
